<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div di="box">  <!-- 视图层 -->
        vue模板语法-表达式
        {{ 10+20 }}
        {{ 20>10 ? 'aaa': 'bbb' }}
        {{myname}}-{{myage}}
    </div>
    <div id="box2">
        {{ 10+20 }}
    </div>

    <script>
        var vm =new Vue({   //viewmodel层
            el:"#box",
            data: { //model层
                myname:"张三",
                myage:"18"
            }
        })
    </script>
</body>
</html>